Step 3: The code runs three times, but always creates the same sprite! Let's fix that.
- Find this line of code: ····sprite·=·codesters.Sprite("cat",·-200,·-100)¬.
- Change the image label "cat" to the loop variable value.
value updates every time the loop runs. First it stores "cat", then "dog", then "pig". The loop now creates three different sprites! You've refactored this program!
To navigate the page using the TAB key, first press ESC to exit the code editor.